package com.reset.password.service;

import com.reset.password.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reset.password.entity.dto.UserDTO;
import com.reset.password.entity.dto.UserRegisterDTO;
import com.reset.password.entity.vo.UserVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2024-11-05
 */
public interface IUserService extends IService<User> {
    // 登录
    UserVO login(String email, String password);
    // 注册
    UserVO register(UserRegisterDTO user);
    // 修改密码
    boolean updatePassword(UserDTO user);
    // 是否存在
    UserVO findByEmail(String email);
}
